﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020006D3 RID: 1747
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetFightFestDataScRsp : IMessage<GetFightFestDataScRsp>, IMessage, IEquatable<GetFightFestDataScRsp>, IDeepCloneable<GetFightFestDataScRsp>, IBufferMessage
	{
		// Token: 0x17001672 RID: 5746
		// (get) Token: 0x06004EB0 RID: 20144 RVA: 0x000D6943 File Offset: 0x000D4B43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetFightFestDataScRsp> Parser
		{
			get
			{
				return GetFightFestDataScRsp._parser;
			}
		}

		// Token: 0x17001673 RID: 5747
		// (get) Token: 0x06004EB1 RID: 20145 RVA: 0x000D694A File Offset: 0x000D4B4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetFightFestDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001674 RID: 5748
		// (get) Token: 0x06004EB2 RID: 20146 RVA: 0x000D695C File Offset: 0x000D4B5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetFightFestDataScRsp.Descriptor;
			}
		}

		// Token: 0x06004EB3 RID: 20147 RVA: 0x000D6963 File Offset: 0x000D4B63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFightFestDataScRsp()
		{
		}

		// Token: 0x06004EB4 RID: 20148 RVA: 0x000D6984 File Offset: 0x000D4B84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFightFestDataScRsp(GetFightFestDataScRsp other) : this()
		{
			this.scoreId_ = other.scoreId_;
			this.challengeList_ = other.challengeList_.Clone();
			this.retcode_ = other.retcode_;
			this.unlockedCoachSkills_ = other.unlockedCoachSkills_.Clone();
			this.itemValue_ = other.itemValue_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004EB5 RID: 20149 RVA: 0x000D69EE File Offset: 0x000D4BEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFightFestDataScRsp Clone()
		{
			return new GetFightFestDataScRsp(this);
		}

		// Token: 0x17001675 RID: 5749
		// (get) Token: 0x06004EB6 RID: 20150 RVA: 0x000D69F6 File Offset: 0x000D4BF6
		// (set) Token: 0x06004EB7 RID: 20151 RVA: 0x000D69FE File Offset: 0x000D4BFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScoreId
		{
			get
			{
				return this.scoreId_;
			}
			set
			{
				this.scoreId_ = value;
			}
		}

		// Token: 0x17001676 RID: 5750
		// (get) Token: 0x06004EB8 RID: 20152 RVA: 0x000D6A07 File Offset: 0x000D4C07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<FightFestChallengeLevel> ChallengeList
		{
			get
			{
				return this.challengeList_;
			}
		}

		// Token: 0x17001677 RID: 5751
		// (get) Token: 0x06004EB9 RID: 20153 RVA: 0x000D6A0F File Offset: 0x000D4C0F
		// (set) Token: 0x06004EBA RID: 20154 RVA: 0x000D6A17 File Offset: 0x000D4C17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001678 RID: 5752
		// (get) Token: 0x06004EBB RID: 20155 RVA: 0x000D6A20 File Offset: 0x000D4C20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnlockedCoachSkills
		{
			get
			{
				return this.unlockedCoachSkills_;
			}
		}

		// Token: 0x17001679 RID: 5753
		// (get) Token: 0x06004EBC RID: 20156 RVA: 0x000D6A28 File Offset: 0x000D4C28
		// (set) Token: 0x06004EBD RID: 20157 RVA: 0x000D6A30 File Offset: 0x000D4C30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemValue
		{
			get
			{
				return this.itemValue_;
			}
			set
			{
				this.itemValue_ = value;
			}
		}

		// Token: 0x06004EBE RID: 20158 RVA: 0x000D6A39 File Offset: 0x000D4C39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetFightFestDataScRsp);
		}

		// Token: 0x06004EBF RID: 20159 RVA: 0x000D6A48 File Offset: 0x000D4C48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetFightFestDataScRsp other)
		{
			return other != null && (other == this || (this.ScoreId == other.ScoreId && this.challengeList_.Equals(other.challengeList_) && this.Retcode == other.Retcode && this.unlockedCoachSkills_.Equals(other.unlockedCoachSkills_) && this.ItemValue == other.ItemValue && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004EC0 RID: 20160 RVA: 0x000D6ACC File Offset: 0x000D4CCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ScoreId != 0U)
			{
				num ^= this.ScoreId.GetHashCode();
			}
			num ^= this.challengeList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.unlockedCoachSkills_.GetHashCode();
			if (this.ItemValue != 0U)
			{
				num ^= this.ItemValue.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004EC1 RID: 20161 RVA: 0x000D6B59 File Offset: 0x000D4D59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004EC2 RID: 20162 RVA: 0x000D6B61 File Offset: 0x000D4D61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004EC3 RID: 20163 RVA: 0x000D6B6C File Offset: 0x000D4D6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.unlockedCoachSkills_.WriteTo(ref output, GetFightFestDataScRsp._repeated_unlockedCoachSkills_codec);
			if (this.ItemValue != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.ItemValue);
			}
			this.challengeList_.WriteTo(ref output, GetFightFestDataScRsp._repeated_challengeList_codec);
			if (this.ScoreId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ScoreId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004EC4 RID: 20164 RVA: 0x000D6C04 File Offset: 0x000D4E04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ScoreId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScoreId);
			}
			num += this.challengeList_.CalculateSize(GetFightFestDataScRsp._repeated_challengeList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.unlockedCoachSkills_.CalculateSize(GetFightFestDataScRsp._repeated_unlockedCoachSkills_codec);
			if (this.ItemValue != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemValue);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004EC5 RID: 20165 RVA: 0x000D6C98 File Offset: 0x000D4E98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetFightFestDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ScoreId != 0U)
			{
				this.ScoreId = other.ScoreId;
			}
			this.challengeList_.Add(other.challengeList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.unlockedCoachSkills_.Add(other.unlockedCoachSkills_);
			if (other.ItemValue != 0U)
			{
				this.ItemValue = other.ItemValue;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004EC6 RID: 20166 RVA: 0x000D6D1E File Offset: 0x000D4F1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004EC7 RID: 20167 RVA: 0x000D6D28 File Offset: 0x000D4F28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 8U || num == 10U)
					{
						this.unlockedCoachSkills_.AddEntriesFrom(ref input, GetFightFestDataScRsp._repeated_unlockedCoachSkills_codec);
						continue;
					}
					if (num == 48U)
					{
						this.ItemValue = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 58U)
					{
						this.challengeList_.AddEntriesFrom(ref input, GetFightFestDataScRsp._repeated_challengeList_codec);
						continue;
					}
					if (num == 72U)
					{
						this.ScoreId = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001EF6 RID: 7926
		private static readonly MessageParser<GetFightFestDataScRsp> _parser = new MessageParser<GetFightFestDataScRsp>(() => new GetFightFestDataScRsp());

		// Token: 0x04001EF7 RID: 7927
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001EF8 RID: 7928
		public const int ScoreIdFieldNumber = 9;

		// Token: 0x04001EF9 RID: 7929
		private uint scoreId_;

		// Token: 0x04001EFA RID: 7930
		public const int ChallengeListFieldNumber = 7;

		// Token: 0x04001EFB RID: 7931
		private static readonly FieldCodec<FightFestChallengeLevel> _repeated_challengeList_codec = FieldCodec.ForMessage<FightFestChallengeLevel>(58U, FightFestChallengeLevel.Parser);

		// Token: 0x04001EFC RID: 7932
		private readonly RepeatedField<FightFestChallengeLevel> challengeList_ = new RepeatedField<FightFestChallengeLevel>();

		// Token: 0x04001EFD RID: 7933
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04001EFE RID: 7934
		private uint retcode_;

		// Token: 0x04001EFF RID: 7935
		public const int UnlockedCoachSkillsFieldNumber = 1;

		// Token: 0x04001F00 RID: 7936
		private static readonly FieldCodec<uint> _repeated_unlockedCoachSkills_codec = FieldCodec.ForUInt32(10U);

		// Token: 0x04001F01 RID: 7937
		private readonly RepeatedField<uint> unlockedCoachSkills_ = new RepeatedField<uint>();

		// Token: 0x04001F02 RID: 7938
		public const int ItemValueFieldNumber = 6;

		// Token: 0x04001F03 RID: 7939
		private uint itemValue_;
	}
}
